﻿using Corporation.Project.Database;

namespace MicroCloud.CodeGenerator.Startups
{
    /// <summary>
    /// 默认设计时数据上下文工厂(用于执行迁移)
    /// </summary>
    public class DesignTimeProjectDbContextFactory : DesignTimeDbContextFactory<ProjectDbContext>
    {
        /// <summary>
        /// 初始化一个 <see cref="DesignTimeProjectDbContextFactory"/> 类型的新实例
        /// </summary>
        public DesignTimeProjectDbContextFactory()
            : base(null)
        { }

        /// <summary>
        /// 初始化一个 <see cref="DesignTimeProjectDbContextFactory"/> 类型的新实例
        /// </summary>
        /// <param name="provider">服务提供者</param>
        public DesignTimeProjectDbContextFactory(IServiceProvider provider)
           : base(provider)
        { }

    }
}
